<?php

include_once('include/includepath.php');
require_once 'Zend/Session/Namespace.php';
require_once 'Zend/Config/Xml.php';
require_once 'Smarty/Smarty.class.php';

class SmartyAPI {

	/**
	 * Retorna el objeto Smarty con sus propiedades seteadas
	 */
	public static function getSmarty($template_dir, $compile_dir, $cache_dir, $config_dir) {

		// Crea objeto Smarty y setea propiedades 
		$smarty = new Smarty();
		$smarty->template_dir = $template_dir;
		$smarty->compile_dir = $compile_dir;
		$smarty->cache_dir = $cache_dir;
		$smarty->config_dir = $config_dir;
		
		// $session->setExpirationSeconds(1);
		
		return $smarty;
	}
	
	
}
